﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Data.OleDb;
using System.Data.SqlClient;
using System.Linq;
using System.Text;

namespace SYS_DAL
{
    public class dbControl
    {
        public ScriptTypeDAL recordDb;
        
        public dbControl(string constr)
        {
            recordDb = new ScriptTypeDAL(constr);
        }
        

        public bool saveEV_E1(EV_MODEL.Result_ES model)
        {
            return true;
        }
        public bool saveEV_E2(EV_MODEL.Result_Charge model)
        {
            return true;
        }
        public bool saveEV_E2_Process(EV_MODEL.Process_Charge model)
        {
            return true;
        }
        public bool saveEV_E3(EV_MODEL.Result_Dyna model)
        {
            return true;
        }
        public bool saveEV_E3_Process(EV_MODEL.Process_Dyna model)
        {
            return true;
        }

        public List<EV_MODEL.CarbjModel> getEVCarList(DateTime starttime, DateTime endtime, bool moni = false)
        {
            if (moni)
            {
                List<EV_MODEL.CarbjModel> list = new List<EV_MODEL.CarbjModel>();
                {
                    EV_MODEL.CarbjModel car1 = new EV_MODEL.CarbjModel();
                    /// <summary>
                    /// 机动车序号
                    /// </summary>
                    car1.xh = "0001";
                    car1.jyjgbh = "001";
                    car1.jcxdh = "01";
                    car1.jylsh = DateTime.Now.ToString("yyyyMMdd") + car1.xh;
                    car1.jycs = "01";
                    car1.hphm = "川AB38055";
                    car1.hpzl = "01";
                    car1.clsbdh = "LSDVD5F24D01254M0";
                    car1.fdjh = "TESLAE";
                    car1.syxz = "A";
                    car1.ccdjrq = "2023-12-26";
                    car1.rlzl = "E";
                    car1.zj = 2890;
                    car1.zs = 2;
                    car1.zbzl = 1911;
                    car1.zzl = 2319;
                    car1.ccrq = "2023-12-01";
                    /// <summary>
                    /// 驱动形式，填写车轮、驱动轮数量及驱动轮位置，如4×2前驱、4×2后驱、4×4四驱
                    /// </summary>
                    car1.qdxs = "4×2后驱";
                    /// <summary>
                    /// 00-注册登记安全检验，01-在用机动车安全检验（定检），02-临时检验，03-特殊检验，04-在用机动车安全检验（非定检）
                    /// </summary>
                    car1.jylb = "01";
                    /// <summary>
                    /// (自定义）检验项目 E1-电气安全 E2-充电 E3-放电
                    /// </summary>
                    car1.jyxm = "E3";
                    car1.dlsj = DateTime.Parse("2024-07-11 09:24:00");
                    car1.dly = "张三";
                    car1.ycy = "李四";
                    car1.wjy = "王五";
                    /// <summary>
                    /// 电气检验员*
                    /// </summary>
                    car1.dqjyy = "赵六";
                    car1.clpp1 = "特斯拉中国";
                    car1.clxh = "ModelY";
                    car1.syr = "车主1";
                    car1.cllx = "K25";

                    //EV 登录
                    car1.zz1 = "1121";
                    car1.zz2 = "800";
                    car1.zz3 = "";
                    car1.zz4 = "";
                    car1.zz5 = "";
                    car1.zz6 = "";
                    /// <summary>
                    /// 电池类型，0-三元锂电池 1-磷酸铁锂电池
                    /// </summary>
                    car1.batteryType = "1";
                    /// <summary>
                    /// 是否有直流充电插座，0-无 1-有
                    /// </summary>
                    car1.hasDCInterface = "1";
                    car1.ev_R = 241 + 45;//255/45 R19

                    //EV计算得到
                    car1.ev_zh = 0;
                    car1.ev_targetF = 0;
                    list.Add(car1);
                }
                {
                    EV_MODEL.CarbjModel car1 = new EV_MODEL.CarbjModel();
                    /// <summary>
                    /// 机动车序号
                    /// </summary>
                    car1.xh = "0002";
                    car1.jyjgbh = "001";
                    car1.jcxdh = "01";
                    car1.jylsh = DateTime.Now.ToString("yyyyMMdd") + car1.xh;
                    car1.jycs = "01";
                    car1.hphm = "川AFR1743";
                    car1.hpzl = "01";
                    car1.clsbdh = "LSDVD5F24D85603M0";
                    car1.fdjh = "LIXIANGE";
                    car1.syxz = "A";
                    car1.ccdjrq = "2022-7-1";
                    car1.rlzl = "E";
                    car1.zj = 3005;
                    car1.zs = 2;
                    car1.zbzl = 2470;
                    car1.zzl = 3080;
                    car1.ccrq = "2022-6-15";
                    /// <summary>
                    /// 驱动形式，填写车轮、驱动轮数量及驱动轮位置，如4×2前驱、4×2后驱、4×4四驱
                    /// </summary>
                    car1.qdxs = "4×4全驱";
                    /// <summary>
                    /// 00-注册登记安全检验，01-在用机动车安全检验（定检），02-临时检验，03-特殊检验，04-在用机动车安全检验（非定检）
                    /// </summary>
                    car1.jylb = "01";
                    /// <summary>
                    /// (自定义）检验项目 E1-电气安全 E2-充电 E3-放电
                    /// </summary>
                    car1.jyxm = "E3";
                    car1.dlsj = DateTime.Parse("2024-07-11 09:24:00");
                    car1.dly = "张三";
                    car1.ycy = "李四";
                    car1.wjy = "王五";
                    /// <summary>
                    /// 电气检验员*
                    /// </summary>
                    car1.dqjyy = "赵六";
                    car1.clpp1 = "理想";
                    car1.clxh = "L8 Pro";
                    car1.syr = "车主2";
                    car1.cllx = "K25";

                    //EV 登录
                    car1.zz1 = "1150";
                    car1.zz2 = "1320";
                    car1.zz3 = "";
                    car1.zz4 = "";
                    car1.zz5 = "";
                    car1.zz6 = "";
                    /// <summary>
                    /// 电池类型，0-三元锂电池 1-磷酸铁锂电池
                    /// </summary>
                    car1.batteryType = "0";
                    /// <summary>
                    /// 是否有直流充电插座，0-无 1-有
                    /// </summary>
                    car1.hasDCInterface = "1";
                    car1.ev_R = 254 + 50;//255/50 R20

                    //EV计算得到
                    car1.ev_zh = 0;
                    car1.ev_targetF = 0;
                    list.Add(car1);
                }
                {
                    EV_MODEL.CarbjModel car1 = new EV_MODEL.CarbjModel();
                    /// <summary>
                    /// 机动车序号
                    /// </summary>
                    car1.xh = "0003";
                    car1.jyjgbh = "001";
                    car1.jcxdh = "01";
                    car1.jylsh = DateTime.Now.ToString("yyyyMMdd") + car1.xh;
                    car1.jycs = "01";
                    car1.hphm = "川AD00T03";
                    car1.hpzl = "01";
                    car1.clsbdh = "LSDVD5F24D8560Y03";
                    car1.fdjh = "T03FE";
                    car1.syxz = "A";
                    car1.ccdjrq = "2021-7-1";
                    car1.rlzl = "E";
                    car1.zj = 2400;
                    car1.zs = 2;
                    car1.zbzl = 995;
                    car1.zzl = 1295;
                    car1.ccrq = "2021-6-15";
                    /// <summary>
                    /// 驱动形式，填写车轮、驱动轮数量及驱动轮位置，如4×2前驱、4×2后驱、4×4四驱
                    /// </summary>
                    car1.qdxs = "4×2前驱";
                    /// <summary>
                    /// 00-注册登记安全检验，01-在用机动车安全检验（定检），02-临时检验，03-特殊检验，04-在用机动车安全检验（非定检）
                    /// </summary>
                    car1.jylb = "01";
                    /// <summary>
                    /// (自定义）检验项目 E1-电气安全 E2-充电 E3-放电
                    /// </summary>
                    car1.jyxm = "E3";
                    car1.dlsj = DateTime.Parse("2024-07-11 09:24:00");
                    car1.dly = "张三";
                    car1.ycy = "李四";
                    car1.wjy = "王五";
                    /// <summary>
                    /// 电气检验员*
                    /// </summary>
                    car1.dqjyy = "赵六";
                    car1.clpp1 = "零跑汽车";
                    car1.clxh = "T03 2024款轻享版";
                    car1.syr = "车主3";
                    car1.cllx = "K43";

                    //EV 登录
                    car1.zz1 = "450";
                    car1.zz2 = "455";
                    car1.zz3 = "";
                    car1.zz4 = "";
                    car1.zz5 = "";
                    car1.zz6 = "";
                    /// <summary>
                    /// 电池类型，0-三元锂电池 1-磷酸铁锂电池
                    /// </summary>
                    car1.batteryType = "1";
                    /// <summary>
                    /// 是否有直流充电插座，0-无 1-有
                    /// </summary>
                    car1.hasDCInterface = "1";
                    car1.ev_R = 178 + 70;//165/70 R14

                    //EV计算得到
                    car1.ev_zh = 0;
                    car1.ev_targetF = 0;
                    list.Add(car1);
                }
                {
                    EV_MODEL.CarbjModel car1 = new EV_MODEL.CarbjModel();
                    /// <summary>
                    /// 机动车序号
                    /// </summary>
                    car1.xh = "0004";
                    car1.jyjgbh = "001";
                    car1.jcxdh = "01";
                    car1.jylsh = DateTime.Now.ToString("yyyyMMdd") + car1.xh;
                    car1.jycs = "01";
                    car1.hphm = "川AXXX01";
                    car1.hpzl = "01";
                    car1.clsbdh = "LSDVD5F24D01254M0";
                    car1.fdjh = "TESLAE";
                    car1.syxz = "A";
                    car1.ccdjrq = "2023-12-26";
                    car1.rlzl = "E";
                    car1.zj = 2300;
                    car1.zs = 2;
                    car1.zbzl = 1911;
                    car1.zzl = 2319;
                    car1.ccrq = "2023-12-01";
                    /// <summary>
                    /// 驱动形式，填写车轮、驱动轮数量及驱动轮位置，如4×2前驱、4×2后驱、4×4四驱
                    /// </summary>
                    car1.qdxs = "4×2后驱";
                    /// <summary>
                    /// 00-注册登记安全检验，01-在用机动车安全检验（定检），02-临时检验，03-特殊检验，04-在用机动车安全检验（非定检）
                    /// </summary>
                    car1.jylb = "01";
                    /// <summary>
                    /// (自定义）检验项目 E1-电气安全 E2-充电 E3-放电
                    /// </summary>
                    car1.jyxm = "E3";
                    car1.dlsj = DateTime.Parse("2024-07-11 09:24:00");
                    car1.dly = "张三";
                    car1.ycy = "李四";
                    car1.wjy = "王五";
                    /// <summary>
                    /// 电气检验员*
                    /// </summary>
                    car1.dqjyy = "赵六";
                    car1.clpp1 = "中货";
                    car1.clxh = "中货";
                    car1.syr = "车主4";
                    car1.cllx = "H21";

                    //EV 登录
                    car1.zz1 = "1121";
                    car1.zz2 = "1400";
                    car1.zz3 = "";
                    car1.zz4 = "";
                    car1.zz5 = "";
                    car1.zz6 = "";
                    /// <summary>
                    /// 电池类型，0-三元锂电池 1-磷酸铁锂电池
                    /// </summary>
                    car1.batteryType = "1";
                    /// <summary>
                    /// 是否有直流充电插座，0-无 1-有
                    /// </summary>
                    car1.hasDCInterface = "1";
                    car1.ev_R = 241 + 45;//255/45 R19

                    //EV计算得到
                    car1.ev_zh = 0;
                    car1.ev_targetF = 0;
                    list.Add(car1);
                }
                {
                    EV_MODEL.CarbjModel car1 = new EV_MODEL.CarbjModel();
                    /// <summary>
                    /// 机动车序号
                    /// </summary>
                    car1.xh = "0005";
                    car1.jyjgbh = "001";
                    car1.jcxdh = "01";
                    car1.jylsh = DateTime.Now.ToString("yyyyMMdd") + car1.xh;
                    car1.jycs = "01";
                    car1.hphm = "川AXXX02";
                    car1.hpzl = "01";
                    car1.clsbdh = "LSDVD5F24D01254M0";
                    car1.fdjh = "TESLAE";
                    car1.syxz = "A";
                    car1.ccdjrq = "2023-12-26";
                    car1.rlzl = "E";
                    car1.zj = 2300;
                    car1.zs = 2;
                    car1.zbzl = 1911;
                    car1.zzl = 2319;
                    car1.ccrq = "2023-12-01";
                    /// <summary>
                    /// 驱动形式，填写车轮、驱动轮数量及驱动轮位置，如4×2前驱、4×2后驱、4×4四驱
                    /// </summary>
                    car1.qdxs = "4×2后驱";
                    /// <summary>
                    /// 00-注册登记安全检验，01-在用机动车安全检验（定检），02-临时检验，03-特殊检验，04-在用机动车安全检验（非定检）
                    /// </summary>
                    car1.jylb = "01";
                    /// <summary>
                    /// (自定义）检验项目 E1-电气安全 E2-充电 E3-放电
                    /// </summary>
                    car1.jyxm = "E3";
                    car1.dlsj = DateTime.Parse("2024-07-11 09:24:00");
                    car1.dly = "张三";
                    car1.ycy = "李四";
                    car1.wjy = "王五";
                    /// <summary>
                    /// 电气检验员*
                    /// </summary>
                    car1.dqjyy = "赵六";
                    car1.clpp1 = "中货";
                    car1.clxh = "中货";
                    car1.syr = "车主5";
                    car1.cllx = "H21";

                    //EV 登录
                    car1.zz1 = "1121";
                    car1.zz2 = "1300";
                    car1.zz3 = "";
                    car1.zz4 = "";
                    car1.zz5 = "";
                    car1.zz6 = "";
                    /// <summary>
                    /// 电池类型，0-三元锂电池 1-磷酸铁锂电池
                    /// </summary>
                    car1.batteryType = "1";
                    /// <summary>
                    /// 是否有直流充电插座，0-无 1-有
                    /// </summary>
                    car1.hasDCInterface = "1";
                    car1.ev_R = 241 + 45;//255/45 R19

                    //EV计算得到
                    car1.ev_zh = 0;
                    car1.ev_targetF = 0;
                    list.Add(car1);
                }
                {
                    EV_MODEL.CarbjModel car1 = new EV_MODEL.CarbjModel();
                    /// <summary>
                    /// 机动车序号
                    /// </summary>
                    car1.xh = "0005";
                    car1.jyjgbh = "001";
                    car1.jcxdh = "01";
                    car1.jylsh = DateTime.Now.ToString("yyyyMMdd") + car1.xh;
                    car1.jycs = "01";
                    car1.hphm = "川AXXX03";
                    car1.hpzl = "01";
                    car1.clsbdh = "LSDVD5F24D01254M0";
                    car1.fdjh = "TESLAE";
                    car1.syxz = "A";
                    car1.ccdjrq = "2023-12-26";
                    car1.rlzl = "E";
                    car1.zj = 2300;
                    car1.zs = 2;
                    car1.zbzl = 1911;
                    car1.zzl = 2319;
                    car1.ccrq = "2023-12-01";
                    /// <summary>
                    /// 驱动形式，填写车轮、驱动轮数量及驱动轮位置，如4×2前驱、4×2后驱、4×4四驱
                    /// </summary>
                    car1.qdxs = "4×2后驱";
                    /// <summary>
                    /// 00-注册登记安全检验，01-在用机动车安全检验（定检），02-临时检验，03-特殊检验，04-在用机动车安全检验（非定检）
                    /// </summary>
                    car1.jylb = "01";
                    /// <summary>
                    /// (自定义）检验项目 E1-电气安全 E2-充电 E3-放电
                    /// </summary>
                    car1.jyxm = "E3";
                    car1.dlsj = DateTime.Parse("2024-07-11 09:24:00");
                    car1.dly = "张三";
                    car1.ycy = "李四";
                    car1.wjy = "王五";
                    /// <summary>
                    /// 电气检验员*
                    /// </summary>
                    car1.dqjyy = "赵六";
                    car1.clpp1 = "中货";
                    car1.clxh = "中货";
                    car1.syr = "车主6";
                    car1.cllx = "H21";

                    //EV 登录
                    car1.zz1 = "1121";
                    car1.zz2 = "1200";
                    car1.zz3 = "";
                    car1.zz4 = "";
                    car1.zz5 = "";
                    car1.zz6 = "";
                    /// <summary>
                    /// 电池类型，0-三元锂电池 1-磷酸铁锂电池
                    /// </summary>
                    car1.batteryType = "1";
                    /// <summary>
                    /// 是否有直流充电插座，0-无 1-有
                    /// </summary>
                    car1.hasDCInterface = "1";
                    car1.ev_R = 241 + 45;//255/45 R19

                    //EV计算得到
                    car1.ev_zh = 0;
                    car1.ev_targetF = 0;
                    list.Add(car1);
                }
                {
                    EV_MODEL.CarbjModel car1 = new EV_MODEL.CarbjModel();
                    /// <summary>
                    /// 机动车序号
                    /// </summary>
                    car1.xh = "0006";
                    car1.jyjgbh = "001";
                    car1.jcxdh = "01";
                    car1.jylsh = DateTime.Now.ToString("yyyyMMdd") + car1.xh;
                    car1.jycs = "01";
                    car1.hphm = "川AXXX04";
                    car1.hpzl = "01";
                    car1.clsbdh = "LSDVD5F24D01254M0";
                    car1.fdjh = "TESLAE";
                    car1.syxz = "A";
                    car1.ccdjrq = "2023-12-26";
                    car1.rlzl = "E";
                    car1.zj = 2300;
                    car1.zs = 2;
                    car1.zbzl = 1911;
                    car1.zzl = 2319;
                    car1.ccrq = "2023-12-01";
                    /// <summary>
                    /// 驱动形式，填写车轮、驱动轮数量及驱动轮位置，如4×2前驱、4×2后驱、4×4四驱
                    /// </summary>
                    car1.qdxs = "4×2后驱";
                    /// <summary>
                    /// 00-注册登记安全检验，01-在用机动车安全检验（定检），02-临时检验，03-特殊检验，04-在用机动车安全检验（非定检）
                    /// </summary>
                    car1.jylb = "01";
                    /// <summary>
                    /// (自定义）检验项目 E1-电气安全 E2-充电 E3-放电
                    /// </summary>
                    car1.jyxm = "E3";
                    car1.dlsj = DateTime.Parse("2024-07-11 09:24:00");
                    car1.dly = "张三";
                    car1.ycy = "李四";
                    car1.wjy = "王五";
                    /// <summary>
                    /// 电气检验员*
                    /// </summary>
                    car1.dqjyy = "赵六";
                    car1.clpp1 = "中货";
                    car1.clxh = "中货";
                    car1.syr = "车主7";
                    car1.cllx = "H21";

                    //EV 登录
                    car1.zz1 = "1121";
                    car1.zz2 = "1100";
                    car1.zz3 = "";
                    car1.zz4 = "";
                    car1.zz5 = "";
                    car1.zz6 = "";
                    /// <summary>
                    /// 电池类型，0-三元锂电池 1-磷酸铁锂电池
                    /// </summary>
                    car1.batteryType = "1";
                    /// <summary>
                    /// 是否有直流充电插座，0-无 1-有
                    /// </summary>
                    car1.hasDCInterface = "1";
                    car1.ev_R = 241 + 45;//255/45 R19

                    //EV计算得到
                    car1.ev_zh = 0;
                    car1.ev_targetF = 0;
                    list.Add(car1);
                }
                {
                    EV_MODEL.CarbjModel car1 = new EV_MODEL.CarbjModel();
                    /// <summary>
                    /// 机动车序号
                    /// </summary>
                    car1.xh = "0007";
                    car1.jyjgbh = "001";
                    car1.jcxdh = "01";
                    car1.jylsh = DateTime.Now.ToString("yyyyMMdd") + car1.xh;
                    car1.jycs = "01";
                    car1.hphm = "川AXXX05";
                    car1.hpzl = "01";
                    car1.clsbdh = "LSDVD5F24D01254M0";
                    car1.fdjh = "TESLAE";
                    car1.syxz = "A";
                    car1.ccdjrq = "2023-12-26";
                    car1.rlzl = "E";
                    car1.zj = 2300;
                    car1.zs = 2;
                    car1.zbzl = 1911;
                    car1.zzl = 2319;
                    car1.ccrq = "2023-12-01";
                    /// <summary>
                    /// 驱动形式，填写车轮、驱动轮数量及驱动轮位置，如4×2前驱、4×2后驱、4×4四驱
                    /// </summary>
                    car1.qdxs = "4×2后驱";
                    /// <summary>
                    /// 00-注册登记安全检验，01-在用机动车安全检验（定检），02-临时检验，03-特殊检验，04-在用机动车安全检验（非定检）
                    /// </summary>
                    car1.jylb = "01";
                    /// <summary>
                    /// (自定义）检验项目 E1-电气安全 E2-充电 E3-放电
                    /// </summary>
                    car1.jyxm = "E3";
                    car1.dlsj = DateTime.Parse("2024-07-11 09:24:00");
                    car1.dly = "张三";
                    car1.ycy = "李四";
                    car1.wjy = "王五";
                    /// <summary>
                    /// 电气检验员*
                    /// </summary>
                    car1.dqjyy = "赵六";
                    car1.clpp1 = "中货";
                    car1.clxh = "中货";
                    car1.syr = "车主8";
                    car1.cllx = "H21";

                    //EV 登录
                    car1.zz1 = "1121";
                    car1.zz2 = "1000";
                    car1.zz3 = "";
                    car1.zz4 = "";
                    car1.zz5 = "";
                    car1.zz6 = "";
                    /// <summary>
                    /// 电池类型，0-三元锂电池 1-磷酸铁锂电池
                    /// </summary>
                    car1.batteryType = "1";
                    /// <summary>
                    /// 是否有直流充电插座，0-无 1-有
                    /// </summary>
                    car1.hasDCInterface = "1";
                    car1.ev_R = 241 + 45;//255/45 R19

                    //EV计算得到
                    car1.ev_zh = 0;
                    car1.ev_targetF = 0;
                    list.Add(car1);
                }
                {
                    EV_MODEL.CarbjModel car1 = new EV_MODEL.CarbjModel();
                    /// <summary>
                    /// 机动车序号
                    /// </summary>
                    car1.xh = "0008";
                    car1.jyjgbh = "001";
                    car1.jcxdh = "01";
                    car1.jylsh = DateTime.Now.ToString("yyyyMMdd") + car1.xh;
                    car1.jycs = "01";
                    car1.hphm = "川AXXX06";
                    car1.hpzl = "01";
                    car1.clsbdh = "LSDVD5F24D01254M0";
                    car1.fdjh = "TESLAE";
                    car1.syxz = "A";
                    car1.ccdjrq = "2023-12-26";
                    car1.rlzl = "E";
                    car1.zj = 2300;
                    car1.zs = 2;
                    car1.zbzl = 1911;
                    car1.zzl = 2319;
                    car1.ccrq = "2023-12-01";
                    /// <summary>
                    /// 驱动形式，填写车轮、驱动轮数量及驱动轮位置，如4×2前驱、4×2后驱、4×4四驱
                    /// </summary>
                    car1.qdxs = "4×2后驱";
                    /// <summary>
                    /// 00-注册登记安全检验，01-在用机动车安全检验（定检），02-临时检验，03-特殊检验，04-在用机动车安全检验（非定检）
                    /// </summary>
                    car1.jylb = "01";
                    /// <summary>
                    /// (自定义）检验项目 E1-电气安全 E2-充电 E3-放电
                    /// </summary>
                    car1.jyxm = "E3";
                    car1.dlsj = DateTime.Parse("2024-07-11 09:24:00");
                    car1.dly = "张三";
                    car1.ycy = "李四";
                    car1.wjy = "王五";
                    /// <summary>
                    /// 电气检验员*
                    /// </summary>
                    car1.dqjyy = "赵六";
                    car1.clpp1 = "中货";
                    car1.clxh = "中货";
                    car1.syr = "车主9";
                    car1.cllx = "H21";

                    //EV 登录
                    car1.zz1 = "1121";
                    car1.zz2 = "1000";
                    car1.zz3 = "";
                    car1.zz4 = "";
                    car1.zz5 = "";
                    car1.zz6 = "";
                    /// <summary>
                    /// 电池类型，0-三元锂电池 1-磷酸铁锂电池
                    /// </summary>
                    car1.batteryType = "1";
                    /// <summary>
                    /// 是否有直流充电插座，0-无 1-有
                    /// </summary>
                    car1.hasDCInterface = "1";
                    car1.ev_R = 241 + 45;//255/45 R19

                    //EV计算得到
                    car1.ev_zh = 0;
                    car1.ev_targetF = 0;
                    list.Add(car1);
                }
                {
                    EV_MODEL.CarbjModel car1 = new EV_MODEL.CarbjModel();
                    /// <summary>
                    /// 机动车序号
                    /// </summary>
                    car1.xh = "0009";
                    car1.jyjgbh = "001";
                    car1.jcxdh = "01";
                    car1.jylsh = DateTime.Now.ToString("yyyyMMdd") + car1.xh;
                    car1.jycs = "01";
                    car1.hphm = "川AXXX07";
                    car1.hpzl = "01";
                    car1.clsbdh = "LSDVD5F24D01254M0";
                    car1.fdjh = "TESLAE";
                    car1.syxz = "A";
                    car1.ccdjrq = "2023-12-26";
                    car1.rlzl = "E";
                    car1.zj = 2300;
                    car1.zs = 2;
                    car1.zbzl = 1911;
                    car1.zzl = 2319;
                    car1.ccrq = "2023-12-01";
                    /// <summary>
                    /// 驱动形式，填写车轮、驱动轮数量及驱动轮位置，如4×2前驱、4×2后驱、4×4四驱
                    /// </summary>
                    car1.qdxs = "4×2后驱";
                    /// <summary>
                    /// 00-注册登记安全检验，01-在用机动车安全检验（定检），02-临时检验，03-特殊检验，04-在用机动车安全检验（非定检）
                    /// </summary>
                    car1.jylb = "01";
                    /// <summary>
                    /// (自定义）检验项目 E1-电气安全 E2-充电 E3-放电
                    /// </summary>
                    car1.jyxm = "E3";
                    car1.dlsj = DateTime.Parse("2024-07-11 09:24:00");
                    car1.dly = "张三";
                    car1.ycy = "李四";
                    car1.wjy = "王五";
                    /// <summary>
                    /// 电气检验员*
                    /// </summary>
                    car1.dqjyy = "赵六";
                    car1.clpp1 = "长安";
                    car1.clxh = "深蓝";
                    car1.syr = "车主10";
                    car1.cllx = "H21";

                    //EV 登录
                    car1.zz1 = "1121";
                    car1.zz2 = "900";
                    car1.zz3 = "";
                    car1.zz4 = "";
                    car1.zz5 = "";
                    car1.zz6 = "";
                    /// <summary>
                    /// 电池类型，0-三元锂电池 1-磷酸铁锂电池
                    /// </summary>
                    car1.batteryType = "1";
                    /// <summary>
                    /// 是否有直流充电插座，0-无 1-有
                    /// </summary>
                    car1.hasDCInterface = "1";
                    car1.ev_R = 241 + 45;//255/45 R19

                    //EV计算得到
                    car1.ev_zh = 0;
                    car1.ev_targetF = 0;
                    list.Add(car1);
                }
                {
                    EV_MODEL.CarbjModel car1 = new EV_MODEL.CarbjModel();
                    /// <summary>
                    /// 机动车序号
                    /// </summary>
                    car1.xh = "0010";
                    car1.jyjgbh = "001";
                    car1.jcxdh = "01";
                    car1.jylsh = DateTime.Now.ToString("yyyyMMdd") + car1.xh;
                    car1.jycs = "01";
                    car1.hphm = "川AXXX08";
                    car1.hpzl = "01";
                    car1.clsbdh = "LSDVD5F24D01254M0";
                    car1.fdjh = "WLHG";
                    car1.syxz = "A";
                    car1.ccdjrq = "2023-12-26";
                    car1.rlzl = "E";
                    car1.zj = 1940;
                    car1.zs = 2;
                    car1.zbzl = 665;
                    car1.zzl = 980;
                    car1.ccrq = "2023-12-01";
                    /// <summary>
                    /// 驱动形式，填写车轮、驱动轮数量及驱动轮位置，如4×2前驱、4×2后驱、4×4四驱
                    /// </summary>
                    car1.qdxs = "4×2后驱";
                    /// <summary>
                    /// 00-注册登记安全检验，01-在用机动车安全检验（定检），02-临时检验，03-特殊检验，04-在用机动车安全检验（非定检）
                    /// </summary>
                    car1.jylb = "01";
                    /// <summary>
                    /// (自定义）检验项目 E1-电气安全 E2-充电 E3-放电
                    /// </summary>
                    car1.jyxm = "E3";
                    car1.dlsj = DateTime.Parse("2024-07-11 09:24:00");
                    car1.dly = "张三";
                    car1.ycy = "李四";
                    car1.wjy = "王五";
                    /// <summary>
                    /// 电气检验员*
                    /// </summary>
                    car1.dqjyy = "赵六";
                    car1.clpp1 = "五菱汽车";
                    car1.clxh = "宏光miniEV";
                    car1.syr = "车主11";
                    car1.cllx = "H21";

                    //EV 登录
                    car1.zz1 = "380";
                    car1.zz2 = "385";
                    car1.zz3 = "";
                    car1.zz4 = "";
                    car1.zz5 = "";
                    car1.zz6 = "";
                    /// <summary>
                    /// 电池类型，0-三元锂电池 1-磷酸铁锂电池
                    /// </summary>
                    car1.batteryType = "1";
                    /// <summary>
                    /// 是否有直流充电插座，0-无 1-有
                    /// </summary>
                    car1.hasDCInterface = "1";
                    car1.ev_R = 152 + 70;//145/70 R12

                    //EV计算得到
                    car1.ev_zh = 0;
                    car1.ev_targetF = 0;
                    list.Add(car1);
                }
                return list;
            }
            else
            {
                return null;
            }
        }
    }
}
